package com.ruoyi.workflow.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;

/**
 * 预约信息对象 bus_appointment_info
 * 
 * @author xiaodu
 * @date 2023-07-21
 */
@Getter
@Setter
@TableName("bus_appointment_info")
public class AppointmentInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约信息主键ID */
    private Long id;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String customerName;

    /** 客户手机号码 */
    @Excel(name = "客户手机号码")
    private String customerPhone;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date appointmentTime;

    /** 到店时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "到店时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date arrivalTime;

    /** 车牌号码 */
    @Excel(name = "车牌号码")
    private String licensePlate;

    /** 汽车类型 */
    @Excel(name = "汽车类型")
    private String carType;

    /** 服务类型 */
    @Excel(name = "服务类型")
    private Long serviceType;

    /** 备注 */
    @Excel(name = "备注")
    private String info;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerName", getCustomerName())
            .append("customerPhone", getCustomerPhone())
            .append("appointmentTime", getAppointmentTime())
            .append("arrivalTime", getArrivalTime())
            .append("licensePlate", getLicensePlate())
            .append("carType", getCarType())
            .append("serviceType", getServiceType())
            .append("info", getInfo())
            .append("status", getStatus())
            .toString();
    }
}
